package cn.iocoder.lw.module.core.controller.admin.device.vo;

import cn.iocoder.lw.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.lw.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 核心设备分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoreDevicePageReqVO extends PageParam {

    private static final long serialVersionUID = 1L;

	@Schema(description = "项目编号", example = "1")
    private Long projectId;

    @Schema(description = "设备类型", example = "智能门锁")
    private String deviceType;

    @Schema(description = "设备ID（关联商品SPU的ID）", example = "1001")
    private Long spuId;

    @Schema(description = "设备名称", example = "智能门锁A-001")
    private String deviceName;

    @Schema(description = "设备编码", example = "DL-001")
    private String deviceCode;

    @Schema(description = "设备状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "质保有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] warrantyTime;

}